package com.awg.gradle.model;

/**
 * 待办事项实体类
 *
 * @author awg
 * @version 1.0
 */
public class TodoItem {

    // 待办事项名称
    private String name;

    // 待办事项状态:已完成
    private boolean hasDone;

    public TodoItem(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isHasDone() {
        return hasDone;
    }

    public void setHasDone(boolean hasDone) {
        this.hasDone = hasDone;
    }

    @Override
    public String toString() {
        return name + " - " + (hasDone?"hasDone":"need to do");
    }
}
